#include "../../server.hpp"

int main(){
    Socket cli_sock;
    bool ret = cli_sock.CreateClient(8500, "127.0.0.1");
    if(!ret){ return -1;}
    int timeout = 5;
    while(timeout--){
        std::string str = "hello, i'm cli";
        cli_sock.Send(str.c_str(), str.size());
        char buf[1024] = {0};
        cli_sock.Recv(buf, 1023);
        DEBUG_LOG("%s", buf);
        sleep(1);
    }
    while(1) 
    {
        sleep(1);
        DEBUG_LOG("sleeping");
    }
    return 0;
}